package org.devf.fork.imsimulator.model;

/**
 * DeviceUserModel related
 *
 * @author wanghuafu
 * @since 0.1 2023/9/24
 */
public class DeviceUserModel {

    private String devCode;

    private Long userId;

    public DeviceUserModel(String unSplitStr) {
        if (null != unSplitStr){
            String[] d = unSplitStr.split("-");
            this.devCode = d[0];
            this.userId = Long.valueOf(d[1]);
        }
    }


    public String getDevCode() {
        return devCode;
    }

    public void setDevCode(String devCode) {
        this.devCode = devCode;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
